<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
    <script type="text/javascript" th:src="@{https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js}"></script>
    <link th:href="@{https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/default.css}" rel="stylesheet"/>
    <link rel="icon" th:href="@{/images/favicon.ico}" type="image/x-icon"/>
    <meta charset="UTF-8"/>
    <title>用户管理</title>
</head>

<body>
<div class="contentDiv">

    <h5> 《Spring Boot 2.x 核心技术实战》 第二章快速入门案例</h5>

    <legend>
        <strong>用户管理</strong>
    </legend>

    <form th:action="@{/User/{action}(action=${action})}" method="post" class="form-horizontal">

        <input type="hidden" name="userId" th:value="${user.userId}"/>

        <div class="form-group">
            <label for="user_name" class="col-sm-2 control-label">名称</label>
            <div class="col-xs-4">
                <input type="text" class="form-control" id="user_name" name="userName" th:value="${user.userName}"/>
            </div>
        </div>

        <div class="form-group">
            <label for="user_password" class="col-sm-2 control-label">密码:</label>
            <div class="col-xs-4">
                <input type="text" class="form-control" id="user_password" name="password" th:value="${user.password}"/>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <input class="btn btn-primary" type="submit" value="提交"/>&nbsp;&nbsp;
                <input class="btn" type="button" value="返回" onclick="history.back()"/>
            </div>
        </div>
    </form>
</div>
</body>
</html>